﻿@model SCMS.UI.Models.ChooseR4PaymentType
@{AjaxOptions ajaxOpts = new AjaxOptions
  {
      UpdateTargetId = "R4PDiv",
      LoadingElementId = "loading",
      HttpMethod = "Post",
      Url = Url.Action("LoadRequst4P"),
      OnSuccess = "initDatePicker();cleanRFPNumbers();"
  };}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Ajax.BeginForm(ajaxOpts))
{
    @Html.ValidationSummary(true)
    <div class="partialViewCard">
        <div class="partialViewCardHeader"><h3>Choose Payment Request Type</h3></div>
        <br />
        <table align="center" style="margin-left: auto; margin-right: auto;"><tr><td align="center">
            <div style="width:auto; padding:6px; border:1px solid #A7B601; background:#fff; border-radius: 6px 6px 6px 6px; margin-left: auto; margin-right: auto;">
            <br />
                <table cellpadding="3">
                    <tr><td align="right">&nbsp; &nbsp; @Html.RadioButtonFor(x => x.R4PType, "Purchase Order")</td><td valign="top">Purchase Order</td></tr>
                    <tr><td align="right">&nbsp; &nbsp; @Html.RadioButtonFor(x => x.R4PType, "Request For Advance")</td><td valign="top">Request For Advance</td></tr>
                    <tr><td align="right">&nbsp; &nbsp; @Html.RadioButtonFor(x => x.R4PType, "Travel Authorisation Form")</td><td valign="top">Travel Authorization</td></tr>
                    <tr><td></td><td><input type="submit" class="btn green" value="Next >>" /></td></tr>
                </table>
            </div>
        </td></tr></table>
        <br />
    </div>
}
